/**
 * 用户相关Mock数据
 */

import type { User } from '@/types'

// 用户Mock数据
export const mockUsers: User[] = [
  {
    id: 1,
    username: 'admin',
    nickname: '超级管理员',
    avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
    email: 'admin@iceeboot.com',
    phone: '13800138000',
    roles: ['admin'],
    permissions: [
      'dashboard:view',
      'system',
      'system:user',
      'system:user:view',
      'system:user:create',
      'system:user:edit',
      'system:user:delete',
      'system:role',
      'system:role:view',
      'system:role:create',
      'system:role:edit',
      'system:role:delete',
      'system:permission',
      'system:permission:view',
      'system:permission:create',
      'system:permission:edit',
      'system:permission:delete',
      'system:menu',
      'system:menu:view',
      'system:menu:create',
      'system:menu:edit',
      'system:menu:delete',
      'monitor',
      'monitor:redis',
      'monitor:redis:view',
      'monitor:redis:delete',
      'monitor:task',
      'monitor:task:view',
      'monitor:task:create',
      'monitor:task:edit',
      'monitor:task:delete',
      'monitor:task:execute',
      'monitor:log',
      'monitor:log:view',
      'monitor:log:export',
      'monitor:api-doc',
      'monitor:api-doc:view',
      // AI管理权限
      'ai',
      'ai:llm',
      'ai:llm:view',
      'ai:llm:create',
      'ai:llm:edit',
      'ai:llm:delete',
      'ai:llm:key',
      'ai:agent',
      'ai:agent:view',
      'ai:agent:create',
      'ai:agent:edit',
      'ai:agent:delete',
      'ai:chat',
      'ai:chat:view',
      'ai:chat:create',
      'ai:chat:send',
      'ai:chat:delete',
      'codegen',
      'codegen:frontend',
      'codegen:frontend:view',
      'codegen:frontend:generate',
      'codegen:backend',
      'codegen:backend:view',
      'codegen:backend:generate',
      'codegen:student'
    ],
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: 2,
    username: 'system_admin',
    nickname: '系统管理员',
    avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
    email: 'system@iceeboot.com',
    phone: '13800138001',
    roles: ['system_admin'],
    permissions: [
      'dashboard:view',
      'system',
      'system:user',
      'system:user:view',
      'system:user:create',
      'system:user:edit',
      'system:role',
      'system:role:view',
      'system:permission',
      'system:permission:view',
        'system:menu',
        'system:menu:view',
        'codegen',
        'codegen:frontend',
        'codegen:frontend:view',
        'codegen:frontend:generate',
        'codegen:backend',
        'codegen:backend:view',
        'codegen:backend:generate'
      ],
    status: 'active',
    createTime: '2024-01-02 00:00:00',
    updateTime: '2024-01-02 00:00:00'
  },
  {
    id: 3,
    username: 'user',
    nickname: '普通用户',
    avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
    email: 'user@iceeboot.com',
    phone: '13800138002',
    roles: ['user'],
    permissions: ['dashboard:view'],
    status: 'active',
    createTime: '2024-01-03 00:00:00',
    updateTime: '2024-01-03 00:00:00'
  },
  {
    id: 4,
    username: 'user_admin',
    nickname: '用户管理员',
    avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
    email: 'useradmin@iceeboot.com',
    phone: '13800138003',
    roles: ['user_admin'],
    permissions: [
      'dashboard:view',
      'system:user',
      'system:user:view',
      'system:user:create',
      'system:user:edit',
      'system:user:delete'
    ],
    status: 'active',
    createTime: '2024-01-04 00:00:00',
    updateTime: '2024-01-04 00:00:00'
  }
]

// 登录相关Mock数据
export const mockLoginUsers = [
  {
    username: 'admin',
    password: '111111',
    user: {
      id: 1,
      username: 'admin',
      nickname: '超级管理员',
      avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
      email: 'admin@iceeboot.com',
      roles: ['admin'],
      permissions: [
        'dashboard:view',
        'system',
        'system:user',
        'system:user:view',
        'system:user:create',
        'system:user:edit',
        'system:user:delete',
        'system:role',
        'system:role:view',
        'system:role:create',
        'system:role:edit',
        'system:role:delete',
        'system:permission',
        'system:permission:view',
        'system:permission:create',
        'system:permission:edit',
        'system:permission:delete',
        'system:menu',
        'system:menu:view',
        'system:menu:create',
        'system:menu:edit',
        'system:menu:delete',
        'monitor',
        'monitor:redis',
        'monitor:redis:view',
        'monitor:redis:delete',
        'monitor:task',
        'monitor:task:view',
        'monitor:task:create',
        'monitor:task:edit',
        'monitor:task:delete',
        'monitor:task:execute',
        'monitor:log',
        'monitor:log:view',
        'monitor:log:export',
        'monitor:api-doc',
        'monitor:api-doc:view',
        // AI管理权限
        'ai',
        'ai:llm',
        'ai:llm:view',
        'ai:llm:create',
        'ai:llm:edit',
        'ai:llm:delete',
        'ai:llm:key',
        'ai:agent',
        'ai:agent:view',
        'ai:agent:create',
        'ai:agent:edit',
        'ai:agent:delete',
        'ai:chat',
        'ai:chat:view',
        'ai:chat:create',
        'ai:chat:send',
        'ai:chat:delete',
        'codegen',
        'codegen:frontend',
        'codegen:frontend:view',
        'codegen:frontend:generate',
        'codegen:backend',
        'codegen:backend:view',
        'codegen:backend:generate'
      ]
    }
  },
  {
    username: 'system_admin',
    password: '111111',
    user: {
      id: 2,
      username: 'system_admin',
      nickname: '系统管理员',
      avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
      email: 'system@iceeboot.com',
      roles: ['system_admin'],
      permissions: [
        'dashboard:view',
        'system',
        'system:user',
        'system:user:view',
        'system:user:create',
        'system:user:edit',
        'system:role',
        'system:role:view',
        'system:permission',
        'system:permission:view',
        'system:menu',
        'system:menu:view',
        'codegen',
        'codegen:frontend',
        'codegen:frontend:view',
        'codegen:frontend:generate',
        'codegen:backend',
        'codegen:backend:view',
        'codegen:backend:generate'
      ]
    }
  },
  {
    username: 'user',
    password: '111111',
    user: {
      id: 3,
      username: 'user',
      nickname: '普通用户',
      avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
      email: 'user@iceeboot.com',
      roles: ['user'],
      permissions: [
        'dashboard:view',
      ]
    }
  },
  {
    username: 'user_admin',
    password: '111111',
    user: {
      id: 4,
      username: 'user_admin',
      nickname: '用户管理员',
      avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
      email: 'useradmin@iceeboot.com',
      roles: ['user_admin'],
      permissions: [
        'dashboard:view',
        'system:user',
        'system:user:view',
        'system:user:create',
        'system:user:edit',
        'system:user:delete'
      ]
    }
  }
]
